package com.csi.okr.mobile.common.entity;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * 岗位信息实体类
 *
 */
@Entity
@Table(name = "V_OKR_POST", schema = "PSGIS")
public class VOkrPost implements Serializable {

	private static final long serialVersionUID = 1L;

	private String postCode;
	private String postseqUuid;
	private String postZhSname;
	private String sortId;

	@Id
	@Column(name = "POST_CODE")
	public String getPostCode() {
		return postCode;
	}

	public void setPostCode(String postCode) {
		this.postCode = postCode;
	}

	@Column(name = "POSTSEQ_UUID")
	public String getPostseqUuid() {
		return postseqUuid;
	}

	public void setPostseqUuid(String postseqUuid) {
		this.postseqUuid = postseqUuid;
	}

	@Column(name = "POST_ZH_SNAME")
	public String getPostZhSname() {
		return postZhSname;
	}

	public void setPostZhSname(String postZhSname) {
		this.postZhSname = postZhSname;
	}

	@Column(name = "SORT_ID")
	public String getSortId() {
		return sortId;
	}

	public void setSortId(String sortId) {
		this.sortId = sortId;
	}

	private List<VOkrEmplOrg> emplOrgList;

	@OneToMany(fetch = FetchType.EAGER)
	@JoinColumn(name = "POST_CODE", referencedColumnName = "POST_CODE", insertable = false, updatable = false)
	public List<VOkrEmplOrg> getEmplOrgList() {
		return emplOrgList;
	}

	public void setEmplOrgList(List<VOkrEmplOrg> emplOrgList) {
		this.emplOrgList = emplOrgList;
	}
	

}
